package controller.events
{
	import flash.events.Event;
	
	public class SocketEvent extends Event
	{
		//Login Action
		public static const LOGIN_SUCCESS:String = "LOGIN_SUCCESS";
		public static const LOGIN_USER_ALREADY_ONLINE:String = "LOGIN_USER_ALREADY_ONLINE";
		public static const LOGIN_IP_CONFLICT:String = "LOGIN_IP_CONFLICT";
		public static const LOGIN_ERROR_USERNAME_OR_PASSWORD:String="LOGIN_ERROR_USERNAME_OR_PASSWORD";
		
		//Lobby infos
		public static const LOBBY_TABLE_LIST:String = "LOBBY_TABLE_LIST";
		public static const LOBBY_PLAYER_LIST:String = "LOBBY_PLAYER_LIST";
		//LOBBY INFO notify
		public static const LOBBY_NEW_USER_LOGIN:String = "LOBBY_NEW_USER_LOGIN";
		public static const LOBBY_USER_LOG_OUT:String = "LOBBY_USER_LOG_OUT";
		public static const NOTICE_LOBBY_ROOM_USER_JOIN:String = "NOTICE_LOBBY_ROOM_USER_JOIN";
		public static const NOTICE_LOBBY_ROOM_USER_EXIT:String = "NOTICE_LOBBY_ROOM_USER_EXIT";
		public static const NOTICE_LOBBY_ROOM_USER_READY:String = "NOTICE_LOBBY_ROOM_USER_READY";
		public static const NOTICE_LOBBY_ROOM_GAME_START:String = "NOTICE_LOBBY_ROOM_GAME_START";
		public static const NOTICE_LOBBY_ROOM_GAME_OVER:String = "NOTICE_LOBBY_ROOM_GAME_OVER";
		
		//room infos
		public static const GAME_ROOM_JOIN:String = "GAME_ROOM_JOIN";
		public static const GAME_ROOM_EXIT:String = "GAME_ROOM_EXIT";
		public static const GAME_ROOM_READY:String = "GAME_ROOM_READY";
		//room notify info
		public static const GAME_ROOM_PLAYER_EXIT:String = "GAME_ROOM_PLAYER_EXIT";
		public static const GAME_ROOM_PLAYER_JOIN:String = "GAME_ROOM_PLAYER_JOIN";
		public static const GAME_ROOM_PLAYER_READY:String = "GAME_ROOM_PLAYER_READY";
		
		//game info	
		public static const GAME_SNED_CARDS:String = "GAME_SNED_CARDS";//出牌，包括首出，轮到出，以及包含剩余牌数
	
		//game notify info
		public static const GAME_GAME_CREATE:String = "GAME_GAME_CREATE";
		public static const GAME_GAME_STARTED:String = "GAME_GAME_STARTED";
		public static const GAME_FIRST_PLAY:String = "GAME_FIRST_PLAY";
		public static const GAME_GAME_WAIT:String = "GAME_GAME_WAIT";
		public static const GAME_CALL_SCORE_NOTIFY:String = "GAME_CALL_SCORE_NOTIFY";//叫分，1,2,3，不叫
		public static const GAME_BE_LANDLORD_NOTIFY:String = "GAME_BE_LANDLORD_NOTIFY";//通知谁是地主
		public static const GAME_INTERRUPTED_OTHER_DISCONNECT:String = "GAME_INTERRUPTED_OTHER_DISCONNECT";//有玩家突然断线了
		public static const GAME_MUST_SEND_NOTIFY:String = "GAME_MUST_SEND_NOTIFY";//首出牌，每个回合第一个出牌
		public static const GAME_TURNTO_PALY_NOTIFY:String = "GAME_TURNTO_PALY_NOTIFY";//轮到出牌，每个回合第一个出牌
		public static const GAME_RECEIVER_MESSAGE_NOTIFY:String = "GAME_RECEIVER_MESSAGE_NOTIFY";//通知有聊天消息
		public static const GAME_OVER_NOTIFY:String = "GAME_OVER_NOTIFY";//轮到出牌，每个回合第一个出牌
		public static const GAME_WINNER_PRODUCED_NOTIFY:String = "GAME_WINNER_PRODUCED_NOTIFY";//通知有聊天消息
		
		public var results:Array;
		public function SocketEvent(type:String,_results:Array,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.results=_results;
			super(type, bubbles, cancelable);
		
		}
	}
}